import { herinRequist } from "../http.js";
// 首页
const Message = {
	getMessage(data) {
		return herinRequist({ url: '/app/message', method: 'GET', data });
	},
	allReadMessage() {
		return herinRequist({ url: '/app/message-read-all', method: 'POST' });
	},
	getMessageDetail(id) {
		return herinRequist({ url: '/app/message-detail', method: 'GET', data: { id } ,contentType:'application/json'});
	},
	postRead(id) {
		return herinRequist({ url: '/app/message-read', method: 'POST', data: { id } ,contentType:'application/json'});
	},
}

export default Message;
